package cn.home.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.home.service.mapper.HomeServiceMapper;
import cn.home.service.domain.HomeService;
import cn.home.service.service.IHomeServiceService;

/**
 * 待处理服务Service业务层处理
 * 
 * @author xsc
 * @date 2025-04-09
 */
@Service
public class HomeServiceServiceImpl implements IHomeServiceService 
{
    @Autowired
    private HomeServiceMapper homeServiceMapper;

    /**
     * 查询待处理服务
     * 
     * @param id 待处理服务主键
     * @return 待处理服务
     */
    @Override
    public HomeService selectHomeServiceById(Long id)
    {
        return homeServiceMapper.selectHomeServiceById(id);
    }

    /**
     * 查询待处理服务列表
     * 
     * @param homeService 待处理服务
     * @return 待处理服务
     */
    @Override
    public List<HomeService> selectHomeServiceList(HomeService homeService)
    {
        return homeServiceMapper.selectHomeServiceList(homeService);
    }

    /**
     * 新增待处理服务
     * 
     * @param homeService 待处理服务
     * @return 结果
     */
    @Override
    public int insertHomeService(HomeService homeService)
    {
        return homeServiceMapper.insertHomeService(homeService);
    }

    /**
     * 修改待处理服务
     * 
     * @param homeService 待处理服务
     * @return 结果
     */
    @Override
    public int updateHomeService(HomeService homeService)
    {
        return homeServiceMapper.updateHomeService(homeService);
    }

    /**
     * 批量删除待处理服务
     * 
     * @param ids 需要删除的待处理服务主键
     * @return 结果
     */
    @Override
    public int deleteHomeServiceByIds(Long[] ids)
    {
        return homeServiceMapper.deleteHomeServiceByIds(ids);
    }

    /**
     * 删除待处理服务信息
     * 
     * @param id 待处理服务主键
     * @return 结果
     */
    @Override
    public int deleteHomeServiceById(Long id)
    {
        return homeServiceMapper.deleteHomeServiceById(id);
    }
}
